
Page({


  data: {
    information: '',
    items: [{
        value: '白菜私有云',
      },
      {
        value: '白菜公有云',

      },
      {
        value: '白菜私有云(灰度)',
      },
      {
        value: '白菜公有云(灰度)',
      },
      {
        value: '自定义',
      },
    ],
    status:false
  },
  onLoad: function(options) {
    console.log(options)
    let that=this
    let items = that.data.items
    for (let i = 0; i < items.length;i++){
      if (options.type === items[i].value) {
        items[i].checked=true
      }
    }
    this.setData({
      information: options,
      items: items
    })
  },
  radioChange(e) {
    if (e.detail.value === '自定义') {
      this.setData({
        status:true
      })
    }else{
      this.setData({
        status: false
      })
    }
  }
})